﻿using System.Collections.Generic;
using System.Linq;
using Xyz.Web.Reservation.BookingService;

namespace Xyz.Web.Reservation.Repositories
{
    public class PaymentRepository : BaseRepository
    {
        public static List<PaymentMethodDTO> GetPaymentMethods()
        {
            return BookingServiceClient.GetPaymentMethods().ToList();
        }

        public static List<CardTypeDTO> GetCardTypes()
        {
            return BookingServiceClient.GetCardTypes().ToList();
        }

        public static void CreatePayment(CardPaymentDTO payment, BookingDTO booking)
        {
            BookingServiceClient.SetCardPayment(payment, booking);
        }

        public static void CreatePayment(MemberPaymentDTO payment, BookingDTO booking)
        {
            BookingServiceClient.SetMemberPayment(payment, booking);
        }
    }
}